package com.sky.service.Order;

import com.sky.dto.order.OrderSelectDTO;
import com.sky.dto.order.OrderSubmitDTO;
import com.sky.dto.order.OrdersPaymentDTO;
import com.sky.entity.Orders;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderSubmitVO;

import java.util.List;

/**
 * @Author 褚金龙
 * @Date 2024/10/6 10:24
 */

public interface OrderService {
    /**
     * 用户下单
     * @param orderSubmitDTO
     * @return
     */
    OrderSubmitVO OrderSubmit(OrderSubmitDTO orderSubmitDTO);


    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    void delete(String orderNumber);


    /**
     * 查询所有订单
     * @return
     */
    PageResult select(OrderSelectDTO orderSelectDTO);


    /**
     * 修改订单状态
     * @param id
     * @param status
     */
    void updateOrderStatus(Long id, Integer status);

    /**
     * 根据id删除订单
     * @param id
     */
    void remove(Long id);

    void reminder(Long id);
}
